#include "UI/Engine.UI.h"
#include "Graphics/Tests/Test.Application.h"

using namespace UI;

#undef  APP_NAME
#define APP_NAME	TestUIApp
#undef  APP_BASE
#define APP_BASE	TestApp


class APP_NAME : public APP_BASE
{
protected:
	UserInterface	_ui;
	Screen			_screen;

public:
	APP_NAME (IPlatform *platform, EDevice::type deviceType) :
		APP_BASE( platform, deviceType ),
		_ui(ESS()), _screen(ESS())
	{
	}

		
	virtual void OnEnter ()
	{
		APP_BASE::OnEnter();

		_ui.InitResources();
		_ui.SetScreen( &_screen );
	}

	
	virtual void OnExit ()
	{
		APP_BASE::OnExit();
		_ui.SetScreen( null );
	}
};
